import re
pattern1 = "leo"
string="asdLeodasdk"
result1 = re.search(pattern1,string)
result2 = re.search(pattern1,string,re.I)
print(result1)
print(result2)